export default defineComponent({
  setup() {
    const refCount = ref(0)
    const onClick = () => {
      refCount.value += 1
    }
    // 这里需要返回一个函数
    return () => (
      <>
        <div>{refCount.value}</div>
        <div>
          <button onClick={onClick}>+1</button>
        </div>
      </>
    )
  }
})
